/**
 * @author:李雄
 * @ClassName:EnumTest
 * @Description:
 * @createTime:2022-08-14 19:07
 */
public class EnumTest {
    public static void main(String[] args) {
        MyEnum myEnum = MyEnum.PHONE;

        //方法调用
        myEnum.enumMethod();
    }

}

enum MyEnum {
    //枚举值
    PHONE("小米"), TEL("132"),DESC;
    public static int count;
    MyEnum(String str){
        System.out.println("哈哈哈");
    }
    MyEnum(){
        System.out.println("无参");
    }

    //枚举的方法
    public void enumMethod(){
        System.out.println("调用枚举方法");
    }
}